package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.InterestEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 会员兴趣爱好模型类
 * 
 * @author pbuilder generated
 * @date 2019-06-14 09:37:04
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Interest extends InterestEntity {

	/**
	 * 构造一个空会员兴趣爱好模型对象
	 */
	public Interest(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员兴趣爱好模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Interest(InterestEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员兴趣爱好模型对象
	 * 
	 * @param other 其它对象
	 */
	public Interest(Interest other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Interest id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置
	 * 
	 * @param memberId 
	 * @return 当前对象
	 */
    public Interest memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getInterest() {
    	return interest;
    }

    /**
	 * 设置
	 * 
	 * @param interest 
	 * @return 当前对象
	 */
    public Interest interest(String interest) {
    	this.interest = interest;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public Interest createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }
}
